const state = {
	userMsg: JSON.parse(window.localStorage.getItem('userMsg')) || {},
}
const mutations = {
	CHANGE_USERMSG(state, msg) {
		state.userMsg = msg
		window.localStorage.setItem('userMsg', JSON.stringify(msg))
	},
	CLEAR_USERMSG(state) {
		state.userMsg = {}
		window.localStorage.removeItem('userMsg')
	},
}
const actions = {}
export default {
	namespaced: true,
	state,
	mutations,
	actions,
}
